package com.rongke.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.rongke.mapper.OpenPeriodMapper;
import com.rongke.model.OpenPeriod;
import com.rongke.service.OpenPeriodService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @OpenPeriodServiceImpl
 * @访客时段分布ServiceImpl
 * @version : Ver 1.0
 */
@Service
public class OpenPeriodServiceImpl extends ServiceImpl<OpenPeriodMapper, OpenPeriod> implements OpenPeriodService {

    @Autowired
    private OpenPeriodMapper openPeriodMapper;

    /**
     * @根据条件查找访客时段分布
     * @param openPeriod
     * @return
     */
    @Override
    public List<OpenPeriod> selectByCondition(OpenPeriod openPeriod) {
        return openPeriodMapper.selectByCondition(openPeriod);
    }
}
